<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
    <title>岗位列表</title>
    <%@ include file="/WEB-INF/jsp/public/common.jspf" %>
    <link rel="stylesheet" type="text/css"
	href="${pageContext.request.contextPath}/style/blue/jquery-ui.min.css" />
<script language="javascript"
	src="${pageContext.request.contextPath}/script/jquery-ui.min.js"></script>
   
</head>
<script type="text/javascript">
	$(document).ready(function() {
		$('.show11').dialog({
			autoOpen : false,
			bgiframe : true,
			width : 400,
			height : 400,
			modal : true,
			buttons : {
				"返回" : function() {
					$(this).dialog("close");
				}
			}
		});
		$('.dialog').click(function() {
			var id=$(this).attr("id");
			$("#url11").attr("src", "messageQuene_editUI.action?id="+id);
			$('.show11').dialog({
				title : "重新请求审阅"
			});
			$('.show11').dialog('open');
			return false;
		});
		

	});
</script>
<body>
 
<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/>消息中心
        </div>
        <div id="Title_End"></div>
    </div>
</div>
<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">
        <caption>别人回复消息列表</caption>
        <thead>
            <tr height="20px" align="CENTER" valign="MIDDLE" id="TableTitle">
            	<td width="100px" >文件名称</td>
                <td width="100px">回复者</td>
                <td width="200px">处理时间</td>
                <td width="100px">回应结果</td>
                <td width="300px">回应说明</td>              
                <td>相关操作</td>
            </tr>
        </thead>

		<!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="roleList">
        
        <s:iterator value="#mqsList" id="mqs">
			<tr class="TableDetail1 template">
				<td><s:property value="(#rdfiles.{?#mqs.rdfileId==#this.id})[0].name"/>&nbsp;</td>
				<td><s:property value="(#operatorList.{?#mqs.recevieId==#this.id})[0].username"/>&nbsp;</td>
				<td>${handleTime}&nbsp;</td>
				<td>
				<s:if test="status==1">已同意上传该文件</s:if> 
			               <s:elseif test="status==2">以后再处理</s:elseif> 
			               <s:elseif test="status==3">我不同意</s:elseif>
				&nbsp;</td>
				<td>${reponseRemark}&nbsp;</td>
				<td>
					<s:if test="status==2 || status==3"><a href="#" class="dialog" id="${id}">请求重新审阅</a></s:if> 
					<s:a action="messageQuene_delete?id=%{id}"   onclick="return window.confirm('您确定要删除吗')">删除</s:a>					
				</td>
			</tr>  
        </s:iterator>       
        </tbody>
    </table>
    <br>
    <table cellspacing="0" cellpadding="0" class="TableStyle">
     <caption>别人发送消息列表</caption>
        <thead>
            <tr height="20px" align="CENTER" valign="MIDDLE" id="TableTitle">
            	<td width="100px">文件名称</td>
                <td width="100px">发送者</td>
                <td width="200px">发出时间</td>
                <td width="100px">请求事件</td>
                <td width="300px">请求说明</td>
                <td>相关操作</td>
            </tr>
        </thead>

		<!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="roleList">
        
       <s:iterator value="#mqrList" id="mqr">
			<tr class="TableDetail1 template">
				<td><s:property value="(#rdfiles.{?#mqr.rdfileId==#this.id})[0].name"/>&nbsp;</td>
				<td><s:property value="(#operatorList.{?#mqr.sendId==#this.id})[0].username"/>&nbsp;</td>
				<td>${sendTime}&nbsp;</td>
				<td>
				<s:if test='status==0'>请求上传该文件</s:if> 
			               <s:elseif test='status==4'>再次请求上传</s:elseif> 
				&nbsp;
				</td>
				<td>${requestRemark}&nbsp;</td>
				<td>
		           <s:a action="messageQuene_checkList" >查看</s:a>
				</td>
			</tr>  
        </s:iterator>   
        </tbody>
    </table>
  <div id="InputDetailBar">
             <s:a action="messageQuene_fresh"><img src="${pageContext.request.contextPath}/style/images/refresh.png" /></s:a>
        </div>
</div>
<div class="show11" title="增加区域" style="display:none">
		<iframe id="url11" width="400" height="400" frameborder="no"
			scrolling="no"></iframe>
	</div>
</body>

</html>
